From fa6e4efbd954891bef3a48b6919657544c1da401 Mon Sep 17 00:00:00 2001 From: Jyrki Gadinger Date: Wed, 19 Mar 2025 11:24:39 +0100 Subject: [PATCH] use colour from `Style` instead of palette for icons Signed-off-by: Jyrki Gadinger --- src/gui/tray/CurrentAccountHeaderButton.qml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/gui/tray/CurrentAccountHeaderButton.qml b/src/gui/tray/CurrentAccountHeaderButton.qml index ca3a3a5ec..3b7249704 100644 --- a/src/gui/tray/CurrentAccountHeaderButton.qml +++ b/src/gui/tray/CurrentAccountHeaderButton.qml @@ -198,7 +198,7 @@ Button { id: currentAccountUser Layout.alignment: Qt.AlignLeft | Qt.AlignBottom width: Style.currentAccountLabelWidth - color: palette.windowText + color: Style.currentUserHeaderTextColor text: UserModel.currentUser ? UserModel.currentUser.name : "" elide: Text.ElideRight @@ -210,7 +210,7 @@ Button { id: currentAccountServer Layout.alignment: Qt.AlignLeft | Qt.AlignBottom width: Style.currentAccountLabelWidth - color: palette.windowText + color: Style.currentUserHeaderTextColor text: UserModel.currentUser ? UserModel.currentUser.server : "" elide: Text.ElideRight visible: UserModel.numUsers() > 1 @@ -227,7 +227,7 @@ Button { id: emoji visible: UserModel.currentUser && UserModel.currentUser.statusEmoji !== "" width: Style.userStatusEmojiSize - color: palette.windowText + color: Style.currentUserHeaderTextColor text: UserModel.currentUser ? UserModel.currentUser.statusEmoji : "" } EnforcedPlainTextLabel { @@ -236,7 +236,7 @@ Button { Layout.fillWidth: true visible: UserModel.currentUser && UserModel.currentUser.statusMessage !== "" width: Style.currentAccountLabelWidth - color: palette.windowText + color: Style.currentUserHeaderTextColor text: UserModel.currentUser && UserModel.currentUser.statusMessage !== "" ? UserModel.currentUser.statusMessage : UserModel.currentUser ? UserModel.currentUser.server : "" -- 2.30.2